<? require_once("header.php"); ?>

<?
foreach( $dgConfigDom->service as $service ) {
$serviceId = $service['id'];

?><h3><?=$serviceId?></h3><ul id="<?=$serviceId?>"><?
foreach( $service->repo->path as $repoPath ) {
    $id       = $repoPath['id'];

    $svn = new SVNLook($repoPath, $_COOKIE["uid"], $_COOKIE["passwd"]);
    $svnstatus = $svn->getSvnStatus("./");
?>
    <a href="?serviceid=<?=$serviceId?>&repoid=<?=$id?>&bwstype=list"><?=$id?></a> 

<?  if( sizeof( $svnstatus->entries ) > 0 ) { 
        echo "(<a href=\"?serviceid=${serviceId}&repoid=${id}&bwstype=status\">상태보기</a>)<br />";
    }
    else {
        echo "<br />";
    }
} 
?>
</ul>
<? 
} 

require_once("footer.php"); 
?>
